import request from '@/utils/request';

export function loginByUsername({name,password}){
    return request.put('/user/signIn',{grant_type:'password',name,password})
}

export function getUserInfo(){
    return request.put('/user/info');
}

export function signOut(){
    return request.put('/user/signOut');
}

export function refreshToken(refresh_token){
    return request.put('/authService/refreshToken',{refresh_token});
}